<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListScrumprojektTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <table>
                <td>
                    <a4j:outputPanel id="DataTableSCP">
                    <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="scplimessagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListScrumprojektEmpty}" rendered="#{scrumprojektController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{scrumprojektController.items.rowCount > 0}">
                    <h:outputText value="#{scrumprojektController.pagination.pageFirstItem + 1}..#{scrumprojektController.pagination.pageLastItem + 1}/#{scrumprojektController.pagination.itemsCount}"/>&nbsp;
                    <a4j:commandLink render="DataTableSCP" action="#{scrumprojektController.previous}" value="#{bundle.Previous} #{scrumprojektController.pagination.pageSize}" rendered="#{scrumprojektController.pagination.hasPreviousPage}"/>&nbsp;
                    <a4j:commandLink render="DataTableSCP" action="#{scrumprojektController.next}" value="#{bundle.Next} #{scrumprojektController.pagination.pageSize}"/>&nbsp;
                    <h:dataTable value="#{scrumprojektController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListScrumprojektTitle_scrumprojektid}"/>
                            </f:facet>
                            <h:outputText value="#{item.scrumprojektid}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListScrumprojektTitle_scrumprojektbezeichnung}"/>
                            </f:facet>
                            <h:outputText value="#{item.scrumprojektbezeichnung}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListScrumprojektTitle_scrumprojektbeschreibung}"/>
                            </f:facet>
                            <h:outputText value="#{item.scrumprojektbeschreibung}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <a4j:commandLink render="sctedpanel" action="#{scrumprojektController.prepareEdit}" value="#{bundle.ListScrumprojektEditLink}"/>
                            
                            <h:outputText value=" "/>
                            <a4j:commandLink render="sctpanel" action="#{scrumprojektController.destroy}" value="#{bundle.ListScrumprojektDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
            </h:form>
                        </a4j:outputPanel>
                </td>
                <td>
                    <a4j:outputPanel id="sctedpanel">
                        <ui:include src="Edit.xhtml"/>
                    </a4j:outputPanel>
                    
                </td>
            </table>
            
        </ui:define>
    </ui:composition>

</html>
